﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Torch_IServices
{
    /// <summary>
    /// 书籍信息
    /// </summary>
    public interface IBookInfoService
    {
        Task<int> AddBookInfoAsync(string bookName,string bookDescription,string publishingHouse,string bookPhoto,decimal bookPrice,int bookCateGoryId);
        Task<int> EditeBookInfoAsync(int id, string bookName, string bookDescription, string publishingHouse, string bookPhoto, decimal bookPrice, int bookCateGoryId);
        Task<int> DeleteBookInfoAsync(int id);
        Task<List<BookInfoDto>> QueryBookInfoAllAsync();
        Task<BookInfoDto> QueryBookInfoByIdAsync(int id);
        Task<List<BookInfoDto>> QueryBookInfoByBookNameAsync(string bookName);
    }
}
